package coolq.yaozhenyong;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

import com.forte.qqrobot.component.forhttpapi.HttpApplication;
import com.forte.qqrobot.sender.MsgSender;

import coolq.yaozhenyong.controller.MyqqRobot;

@SpringBootApplication
public class Cqrobotjar2Application {
	
	public static MsgSender msgSender;
	
	public static void main(String[] args) {
		ConfigurableApplicationContext run = SpringApplication.run(Cqrobotjar2Application.class, args);
		HttpApplication httpApplication= new  HttpApplication();
		httpApplication.run(new MyqqRobot());
		msgSender = httpApplication.getMsgSender();	
		//ConfigurableListableBeanFactory beanFactory = run.getBeanFactory();
		//beanFactory.registerResolvableDependency(MsgSender.class, httpApplication.getMsgSender());
	}

}
